cargo_new: drop the trailing slash for target exclusion in Git
authorBen Boeckel <ben.boeckel@kitware.com>
Mon, 15 Jan 2018 22:07:56 +0000 (17:07 -0500)
committerBen Boeckel <ben.boeckel@kitware.com>
Mon, 15 Jan 2018 22:07:56 +0000 (17:07 -0500)
commitf4e0eef11a92c32b6b13857a3c1ecdda2fda6478
treec728d93cf48335a79b1eb6c306a696cfd8b8e842
parent6a8eb71f6d226f9ac869dbacd5ff6aa76deef1c4
cargo_new: drop the trailing slash for target exclusion in Git

When `target` is a symlink (e.g., to keep build outputs on a separate
partition), Git will not match the `/target/` ignore to the symlink
since it is not a directory. Drop the trailing slash to support ignoring
`target` as a symlink.
src/cargo/ops/cargo_new.rs